import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 引入字体图标样式
import '@/styles/fonts/font.less'

import '@/styles/index.less'

import axios from 'axios'

// axios.defaults.baseURL = 'http://111.160.78.62:9931/api'
// axios.defaults.baseURL = 'http://111.160.78.62:9930/Cityscapeapi'//市容委
// axios.defaults.baseURL = 'http://localhost:63067/Cityscapeapi'//市容委
// axios.defaults.baseURL = 'http://111.160.78.62:9931/Companyapi' //作业公司-应县
// axios.defaults.baseURL = 'http://localhost:63067/CompanyapiDC'//作业公司-大厂
axios.defaults.baseURL = 'http://111.160.78.62:9932/CompanyapiDC' //作业公司-大厂
// axios.defaults.baseURL = 'http://localhost:63067/CityscapeDLapi'//东丽
// axios.defaults.baseURL = 'http://111.160.78.62:9933/CityscapeDLapi' //东丽
// axios.defaults.baseURL = 'http://111.160.78.62:5563/api'
// axios.defaults.baseURL = 'http://111.160.78.62:9938/CityscapeZHJapi'//中环洁
// axios.defaults.baseURL = 'http://localhost:63067/CityscapeZHJapi'//中环洁
// axios.defaults.baseURL = 'http://111.160.78.62:5564/CompanyapiBDEapi'//博德尔
// axios.defaults.baseURL = 'http://localhost:63067/CompanyapiBDEapi'//博德尔
// axios.defaults.baseURL = 'http://111.160.78.62:9942/GarbagePointsApi'

const MapName='天津市'
// const user='yx'//给一张图用的数据库名
// const user='glx'
// const user='zhj'
// const user='dc'
const user='bde'
// const MapName = '朔州市应县'
// const MapName = '廊坊市大厂县'
// const MapName = '沈阳'
//天津坐标
const DefaultPointX=117.2
const DefaultPointY=39.15
// 应县坐标
// const DefaultPointX = 113.2
// const DefaultPointY = 39.4
//大厂坐标
// const DefaultPointX = 117.0335
// const DefaultPointY = 39.8481
//沈阳坐标
// const DefaultPointX = 123.38
// const DefaultPointY = 41.8
  

//整体引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//引用vuex
import Vuex from 'vuex'
 
import vdr from 'vue-draggable-resizable-gorkys'

// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

import '@/styles/draggableResize.less'


Vue.use(ElementUI)
Vue.use(Vuex)
Vue.component('vdr', vdr)


Vue.prototype.$Http = axios

Vue.config.productionTip = false

// 根据路由设置标题
router.beforeEach((to, from, next) => {
  /*路由发生改变修改页面的title */
  if(to.meta.title) {
    document.title = to.meta.title
  }
  next()
})


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

export default {
  MapName,
  DefaultPointX,
  DefaultPointY,
  user
}
